<include file="common:__head__"/>
<div class="permissions-content">
    <div class="permissions-le">
        <span class="add-admin"><a href="javascript:history.go(-1)"></a>会员列表</span>
        <div class="add-admin-ipt">
            <span>会员名称</span>
            <input type="text" value="{$agent['agent_name']}" class="w200" disabled/>
        </div>
        <div class="add-admin-ipt">
            <span>手机号</span>
            <input type="text" value="{$agent['mobile']}" class="w200" disabled/>
        </div>
        <div class="add-admin-ipt">
            <span>邮箱</span>
            <input type="text" value="{$agent['email']}" class="w200" disabled/>
        </div>
        <div class="add-admin-ipt">
            <span>预存款</span>
            <input type="text" value="{$agent['money']}" class="w200" disabled style="color: #dc2500;font-weight: bold;"/>
        </div>
        <div class="add-admin-ipt">
            <span>最大消费</span>
            <input type="text" value="{$agent['credit_line']}" class="w200" disabled style="color: #dc2500;font-weight: bold;"/>
        </div>
        <div class="add-admin-ipt">
            <span>注册时间</span>
            <input type="text" value="<if condition="$agent['invitation_code'] eq '*'">{$agent['reg_time']}<else/>未注册</if>" class="w200" disabled/>
        </div>
        <div class="permissions-table">
            <table border="0" width="100%">
                <thead>
                <tr>
                    <td>会员名称</td>
                    <td>详细地址</td>
                    <td>收货人</td>
                    <td>收货人号码</td>
                    <td>是否默认</td>
                </tr>
                </thead>
                <tbody class="trade-setting">
                <notempty name="agentAddress">
                    <foreach name="agentAddress" item="vo">
                        <tr>
                            <td>{$agent['agent_name']}</td>
                            <td>{$vo['detail_address']}</td>
                            <td>{$vo['consignee']}</td>
                            <td>{$vo['mobile']}</td>
                            <td><if condition="$vo['is_default'] eq 1">是<else/>否</if></td>
                        </tr>
                    </foreach>
                    <else/><td colspan="5">无收货地址</td>
                </notempty>
                </tbody>
            </table>
        </div>

        <div class="permissions-table" style="margin-top:20px;">
            <table border="0" width="100%">
                <thead>
                <tr>
                    <td>引荐代理姓名</td>
                    <td>引荐时间</td>
                    <td>引荐时级别</td>
                </tr>
                </thead>
                <tbody class="trade-setting">
                <notempty name="recommend_agents">
                    <foreach name="recommend_agents" item="rec">
                        <tr>
                            <td>{$rec['agent_name']}</td>
                            <td>{$rec['add_time']|date='Y-m-d',###}</td>
                            <td>{:GetRankNameById($rec['rank_id'])}</td>
                        </tr>
                    </foreach>
                    <else/><td colspan="5">无引荐代理</td>
                </notempty>
                </tbody>
            </table>
        </div>
    </div>
    <div class="permissions-ri">
        <a href="" class="permissions-help">帮助和服务</a>
    </div>
</div>
<include file="common:__foot__"/>